import { createRouter, createWebHistory } from 'vue-router';
import { isMobileTermianl } from '@/utils/flexible';
import mobileRoutes from './modules/mobile-routes';
import pcRoutes from './modules/pc-routes';

/**
 * 初始化Vue路由，分别构建移动端路由表和PC端路由表
 */
const router = createRouter({
    history: createWebHistory(),
    routes: isMobileTermianl.value ? mobileRoutes : pcRoutes,
})

export default router;